<!DOCTYPE html>
<html>
    <head>
        <title>360湘江世纪城</title>
        <#include "controls/public_header.ftl">
        <script type="text/javascript">
		$(function(){
			PubOPT.jsEventLoad(pageJsEvent);
		});
		
		function pageJsEvent() {
			$('#categorys').children('.mc').toggle();
			$(".item").hover(function(){
				$(this).toggleClass('hover');
			});
			
			$("div[code]").mouseover(function(){
				var code = $(this).attr("code");
				$(this).parent().find("div[code]:not([code='"+code+"'])").removeClass("text5_select").addClass("text5");
				$(this).removeClass("text5").addClass("text5_select");
				$(this).parent().parent().find("div[view]:not([view='"+code+"'])").hide();
				$(this).parent().parent().find("div[view='"+code+"']").show();
			});
		}
		</script>
    </head>
    <body>
		<div id="container">
			<#include "controls/header.ftl">
			<div id="main"> 
				<div class="Lay_1">
					<div class="col_2" id="categorys">
						<div class="title_1">全部商品分类</div>
						<div class="mc">
							<#include "controls/categories.ftl">
						</div>
					</div>
					<div class="col_3">
						<#include "controls/top_nav.ftl">
						<div class="ad_1">
							<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="539" height="363">
								<param name="movie" value="${model._contextPath}/web/resources/swf/viewer.swf">
								<param name='wmode' value='transparent'>
								<param name="quality" value="high">
								<param name="flashvars" value="xmlPath=/web/resources/xml/viewerData.xml" />
								<embed src="${model._contextPath}/web/resources/swf/viewer.swf" flashvars="xmlPath=/web/resources/xml/viewerData.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="539" height="363"></embed>
							</object>
						</div>
						<div class="wykd">
							<div>
								<div class="pic_1"><img src="${model._contextPath}/web/resources/images/index_17.gif" /></div>
								<div class="Lst_1">HI!您好~！欢迎来到湘江世纪城！我们将提供360度的全方位服务！</div>
							</div>
							<div>
								<span class="btn_1"><a href="${model._contextPath}/p100012.html"><span class="tu"><img src="${model._contextPath}/web/resources/images/index_22.gif" width="12" height="14" />登录</span></a></span>
								<span class="btn_1"><a href="${model._contextPath}/p100011.html">注册</a></span>
								<span class="btn_1"><a href="${model._contextPath}/p100030.html">我要开店</a></span>
							</div>
						</div>
						<!-- 通知公告 -->
						<div class="tzgg">
							<div class="title_2"><a href="${model._contextPath}/p100029.html">公告通知</a><span><a href="${model._contextPath}/p100029.html" target="_blank">更多...</a></span></div>
							<#if model.news_list?exists && model.news_list?has_content>
					        	<ul>
					        		<#list model.news_list as item>
					        			<li><a href="${model._contextPath}/p100033.html?id=${item.news_id}" target="_blank">${item.subject}</a><span>${item.add_time}</span></li>
						            </#list>
						        </ul>
						    <#else>
						    </#if>
						</div>
					</div>
				</div>
				<!-- 便民服务  -->
				<div class="Lay_2">
					<div class="title_3">便民服务</div>
					<div class="col_4">
						<div class="pic_2"><img src="${model._contextPath}/web/resources/images/index_31.gif" /></div>
						<div class="text3 text1"><a href="#">点外卖</a></div>
					</div>
					<div class="col_4">
						<div class="pic_2"><img src="${model._contextPath}/web/resources/images/index_31.gif" /></div>
						<div class="text3 text1"><a href="#">彩票</a></div>
					</div>
					<div class="col_4">
						<div class="pic_2"><img src="${model._contextPath}/web/resources/images/index_31.gif" /></div>
						<div class="text3 text1"><a href="#">电影票</a></div>
					</div>
				</div>
				<div class="Lay_3">
					<div class="col_5">
						<#assign x=0 />
						<#if model.types?exists && model.types?has_content>
							<#list model.types as item>
								<#if (item.cn > 0)>
								<div class="col_5_1">
									<div class="title_4">
										<div class="text4">${item.type_name}</div>
										<div class="text5" code="1_shop">店铺</div>
										<div class="text5_select" code="1_goods">商品</div>
									</div>
									<div class="col_5_nr" view="1_goods" style="float:right; width:98%;">
										<#assign x=0 />
										<#if model.shop_goods_list?exists && model.shop_goods_list?has_content>
											<#list model.shop_goods_list as ls>
												<#if (ls.goods_type_id==item.goods_type_id && ls.cls==2)>
													<#assign x=x+1 />
													<#if (x>4)>
														<#break>
													<#else>
														<div class="cp">
															<div class="pic_3"><a href="${model._contextPath}/p100010.html?id=${ls.id}"><img src="${model._contextPath}${ls.small_relative_path}" width="150" height="128" /></a></div>
															<div class="title_5"><div class="span"><a href="${model._contextPath}/p100010.html?id=${ls.id}">${ls.name}</a></div>
														   ¥ <span class="title_5_red">${ls.goods_price?number?string("0.##")}</span></div>
														</div>
													</#if>
												</#if>
											</#list>
										</#if>
									</div>
									
									<div class="col_5_nr" view="1_shop" style="display: none;margin:15px 0px">
										<#assign x=0 />
										<#if model.shop_goods_list?exists && model.shop_goods_list?has_content>
											<#list model.shop_goods_list as ls>
												<#if (ls.goods_type_id==item.goods_type_id && ls.cls==1)>
													<#assign x=x+1 />
													<#if (x>2)>
														<#break>
													<#else>
														<div class="dp">
															<div class="cp">
																<div class="pic_3"><a href="${model._contextPath}/p100009.html?id=${ls.id}"><img src="${model._contextPath}${ls.small_relative_path}" width="150" height="168" /></a></div>
															</div>
															<div class="nr">
																<span class="text10"><strong><a href="${model._contextPath}/p100009.html?id=${ls.id}">${ls.name}</a></strong></span><br />
																<span class="text4">营业时间：${ls.business_start_hours}-${ls.business_end_hours}</span><br />
																<span class="text4">最低送货价格：<span class="text8"><strong>￥${ls.lowest_price}</strong></span>元</span><br />
																<!--<div class="span">简介：店铺名称店铺名称店铺名称店铺名称店铺名...</div> -->
															</div>
														</div>
													</#if>
												</#if>
											</#list>
										</#if>
									</div>
								</div>
								</#if>
						    </#list>
						</#if>
					</div>
					<div class="aadleft">
						<div class="col_6">
							<div>
								<!-- 新店推荐 -->
								<div class="title_6">新店推荐</div>
								<div class="col_6_nr">
								<#if model.new_shop_recommand?exists && model.new_shop_recommand?has_content>
									<#list model.new_shop_recommand as item>
										<div class="pic_4"><a href="${model._contextPath}/p100009.html?id=${item.shop_id}"><img width="98" height="100" src="${model._contextPath}${item.small_relative_path}" /></a>
											<div class="title_7">${item.shop_name}</div>
										</div>
									</#list>
							    <#else>
							    </#if>
									<div class="text6"><a href="#">更多店铺></a></div>
								</div>
							</div>
							<#if model.hot?exists && model.hot?has_content && (model.hot?size>0) >
							<div>
								<div class="title_6">热销排行</div>
								<div class="col_6_nr1">
									<ul>
											<#list model.hot as item>
											<li><span><img src="${model._contextPath}/web/resources/images/index_hot_${item_index+1}.gif" /></span><a href="${model._contextPath}/p100010.html?id=${item.goods_id}">${item.goods_name}</a></li>
											</#list>
									</ul>
								</div>
							</div>
							</#if>
						</div>
						<div class="ad_2"><img src="${model._contextPath}/web/resources/images/gg.jpg" width="248" height="107" /></div>
					</div>
				</div> 
			</div> 
		    <div>
				<div width="100%" height="127"> 
					<#include "controls/footer.ftl">
				</div>
			</div>
		</div>
    </body>
</html>